import java.util.ArrayList;
import java.util.Collections;

public class Deck 
{
	public int cardsLeftCount;
	public ArrayList<Card> cardsLeft;
	public ArrayList<Card> cardsUsed;
	String[] suits={"C","D","H","S"};
	Rank[] ranks={Rank.ACE, Rank.TWO, Rank.THREE, Rank.FOUR, Rank.FIVE, Rank.SIX, Rank.SEVEN, Rank.EIGHT, Rank.NINE, Rank.TEN, Rank.JACK, Rank.QUEEN, Rank.KING};
	Deck()
	{	
		cardsLeft = new ArrayList<Card>();
		cardsUsed = new ArrayList<Card>();
		for(int i=0; i<13; i++)
		{
			for(int j=0; j<4; j++)
			{				
				cardsLeft.add(new Card(suits[j],ranks[i]));
				Collections.shuffle(cardsLeft);
				cardsLeftCount = (cardsLeft.size()) - 1;								
			}
		}
	}
	void shuffleCardsUsed()
	{
		Collections.copy(cardsLeft, cardsUsed);
		cardsUsed.clear();
		Collections.shuffle(cardsLeft);
	}
	
}
